
package gov.chinatax.ctcps.generator.form;

import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for czdzDzbsj.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="czdzDzbsjForm"
 */
public class CzdzDzbsjForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _bh = null;
   private java.lang.String _czdzbbh = null;
   private java.lang.String _zffsDm = null;
   private java.lang.String _zclxDm = null;
   private java.lang.String _yskmbh = null;
   private java.math.BigDecimal _gszcje = null;
   private java.math.BigDecimal _czdrje = null;
   private java.math.BigDecimal _ce = null;
   private java.lang.String _lrrq = null;
   private java.lang.String _sx = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;
   private java.lang.String yslxDm = null;
   private java.lang.String cysm = null;

   public java.lang.String getCysm() {
	return cysm;
	}
	
	public void setCysm(java.lang.String cysm) {
		this.cysm = cysm;
	}
	
	public java.lang.String getYslxDm() {
		return yslxDm;
	}
	
	public void setYslxDm(java.lang.String yslxDm) {
		this.yslxDm = yslxDm;
	}

/**
    * Standard constructor.
    */
   public CzdzDzbsjForm() {
   }

   /**
    * Returns the bh
    *
    * @return the bh
    */
   public java.lang.String getBh() {
      return _bh;
   }

   /**
    * Sets the bh
    *
    * @param bh the new bh value
    */
   public void setBh(java.lang.String bh) {
      _bh = bh;
   }
   /**
    * Returns the czdzbbh
    *
    * @return the czdzbbh
    */
   public java.lang.String getCzdzbbh() {
      return _czdzbbh;
   }

   /**
    * Sets the czdzbbh
    *
    * @param czdzbbh the new czdzbbh value
    */
   public void setCzdzbbh(java.lang.String czdzbbh) {
      _czdzbbh = czdzbbh;
   }
   /**
    * Returns the zffsDm
    *
    * @return the zffsDm
    */
   public java.lang.String getZffsDm() {
      return _zffsDm;
   }

   /**
    * Sets the zffsDm
    *
    * @param zffsDm the new zffsDm value
    */
   public void setZffsDm(java.lang.String zffsDm) {
      _zffsDm = zffsDm;
   }
   /**
    * Returns the zclxDm
    *
    * @return the zclxDm
    */
   public java.lang.String getZclxDm() {
      return _zclxDm;
   }

   /**
    * Sets the zclxDm
    *
    * @param zclxDm the new zclxDm value
    */
   public void setZclxDm(java.lang.String zclxDm) {
      _zclxDm = zclxDm;
   }
   /**
    * Returns the yskmbh
    *
    * @return the yskmbh
    */
   public java.lang.String getYskmbh() {
      return _yskmbh;
   }

   /**
    * Sets the yskmbh
    *
    * @param yskmbh the new yskmbh value
    */
   public void setYskmbh(java.lang.String yskmbh) {
      _yskmbh = yskmbh;
   }
   /**
    * Returns the gszcje
    *
    * @return the gszcje
    */
   public java.math.BigDecimal getGszcje() {
      return _gszcje;
   }

   /**
    * Sets the gszcje
    *
    * @param gszcje the new gszcje value
    */
   public void setGszcje(java.math.BigDecimal gszcje) {
      _gszcje = gszcje;
   }
   /**
    * Returns the czdrje
    *
    * @return the czdrje
    */
   public java.math.BigDecimal getCzdrje() {
      return _czdrje;
   }

   /**
    * Sets the czdrje
    *
    * @param czdrje the new czdrje value
    */
   public void setCzdrje(java.math.BigDecimal czdrje) {
      _czdrje = czdrje;
   }
   /**
    * Returns the ce
    *
    * @return the ce
    */
   public java.math.BigDecimal getCe() {
      return _ce;
   }

   /**
    * Sets the ce
    *
    * @param ce the new ce value
    */
   public void setCe(java.math.BigDecimal ce) {
      _ce = ce;
   }
   /**
    * Returns the lrrq
    *
    * @return the lrrq
    */
   public java.lang.String getLrrq() {
      return _lrrq;
   }

   /**
    * Sets the lrrq
    *
    * @param lrrq the new lrrq value
    */
   public void setLrrq(java.lang.String lrrq) {
      _lrrq = lrrq;
   }
   /**
    * Returns the sx
    *
    * @return the sx
    */
   public java.lang.String getSx() {
      return _sx;
   }

   /**
    * Sets the sx
    *
    * @param sx the new sx value
    */
   public void setSx(java.lang.String sx) {
      _sx = sx;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getBh() == null) {
         errors.add("bh", new ActionError("error.bh.required"));
      }
      if(getCzdzbbh() == null) {
         errors.add("czdzbbh", new ActionError("error.czdzbbh.required"));
      }
      if(getZffsDm() == null) {
         errors.add("zffsDm", new ActionError("error.zffsDm.required"));
      }
      if(getZclxDm() == null) {
         errors.add("zclxDm", new ActionError("error.zclxDm.required"));
      }
      if(getYskmbh() == null) {
         errors.add("yskmbh", new ActionError("error.yskmbh.required"));
      }
      if(getGszcje() == null) {
         errors.add("gszcje", new ActionError("error.gszcje.required"));
      }
      if(getCzdrje() == null) {
         errors.add("czdrje", new ActionError("error.czdrje.required"));
      }
      if(getCe() == null) {
         errors.add("ce", new ActionError("error.ce.required"));
      }
      // TODO test format/data
      return errors;
   }
}
